/********************************************************/
/*	Copyright (C) 2012 Gong Li Bin			*/
/*	Project:	MapReduce			*/
/*	Author:		gong_libin			*/
/*	Date:		2012_01_31			*/
/*	File:		MrMem.h				*/
/********************************************************/

#ifndef _MRMMR_H
#define	_MRMMR_H

#include "MrCmd.h"

typedef struct tagMrMem
{
	UINT m_uiTotal;
	UINT m_uiUsed;
	UINT m_uiFree;
}MRMMR_S;

class CMrMem : public CMrCmd
{
public:
	CMrMem();
	virtual ~CMrMem();

	void MrMemInfo(char* pszResult);

	virtual void* MrCmdResultGet();
	virtual void MrCmdResultReset();
	virtual void MrCmdResultSet(void* pResult);

	virtual void MrCmdDisplay();
	virtual void MrCmdInfo(char* pszResult);
	virtual void MrCmdResultInput(UCHAR* puszBuffer, int iLength);
	virtual int MrCmdResultOutput(UCHAR* puszBuffer, USHORT* pusTotal);

private:
	MRMMR_S m_stMem[MR_CMD];

};

#endif /* _MRMMR_H */
